﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Company.master" AutoEventWireup="true"
    CodeFile="Company_ResumeSearch.aspx.cs" Inherits="Company_ResumeSearch" %>

<%@ Register Src="UserControl/Position.ascx" TagName="Position" TagPrefix="uc1" %>
<%@ Register Src="UserControl/Location.ascx" TagName="Location" TagPrefix="uc2" %>
<%@ Import Namespace="Avatar.Model" %>
<%@ Import Namespace="Avatar.ResumeService" %>
<%@ Import Namespace="Avatar.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_Main" runat="Server">
    <div class="Dialog">
        <div class="Title">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            最新简历
        </div>
        <div class="Content">
            <uc1:Position ID="Position1" runat="server" />
            <asp:Button CssClass="Button" ID="btn_Search" runat="server" Text="搜索" OnClick="btn_Search_Click" />
            <asp:GridView ID="gv_General" runat="server" AutoGenerateColumns="False" CellPadding="4"
                ForeColor="#333333" GridLines="None" AllowPaging="True">
                <RowStyle BackColor="#EFF3FB" />
                <Columns>
                    <asp:TemplateField HeaderText="姓名" SortExpression="BasicInformationID">
                        <ItemTemplate>
                            <%# ((PersonalBasicInfo)Eval("PersonalBasicInfo")).Name %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="年龄" SortExpression="SelfEvaluationID">
                        <ItemTemplate>
                            <%# DateTime.Now.Year-((PersonalBasicInfo)Eval("PersonalBasicInfo")).Birthday.Year %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="工作经验" SortExpression="JobIntentionID">
                        <ItemTemplate>
                            <%# ((PersonalBasicInfo)Eval("PersonalBasicInfo")).WorkingAge.Age %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="学历" SortExpression="User">
                        <ItemTemplate>
                            <%# ((PersonalBasicInfo)Eval("PersonalBasicInfo")).Diploma.Name %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="期望职位" SortExpression="UpdateDate">
                        <ItemTemplate>
                            <%# JobIntentionManager.GetPosition(Eval("user").ToString())%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="期望薪金" SortExpression="LanguageLevelID">
                        <ItemTemplate>
                            <%# ((JobIntention)Eval("JobIntention")).SalaryYear.Salary%>/年
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作" SortExpression="LanguageLevelID">
                        <ItemTemplate>
                            <asp:Button ID="btn_View_General" runat="server" Text="查看" />
                            <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButton_General" runat="server" ConfirmText="'普通企业服务用户'不能查看求职简历"
                                TargetControlID="btn_View_General">
                            </ajaxToolkit:ConfirmButtonExtender>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    <div style="padding: 5%; text-align: center;">
                        没有找到符合查询条件的记录。
                    </div>
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:GridView ID="gv_Vip" runat="server" AutoGenerateColumns="False" CellPadding="4"
                ForeColor="#333333" GridLines="None" AllowPaging="True">
                <RowStyle BackColor="#EFF3FB" />
                <Columns>
                    <asp:TemplateField HeaderText="姓名" SortExpression="BasicInformationID">
                        <ItemTemplate>
                            <%# ((PersonalBasicInfo)Eval("PersonalBasicInfo")).Name %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="年龄" SortExpression="SelfEvaluationID">
                        <ItemTemplate>
                            <%# DateTime.Now.Year-((PersonalBasicInfo)Eval("PersonalBasicInfo")).Birthday.Year %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="工作经验" SortExpression="JobIntentionID">
                        <ItemTemplate>
                            <%# ((PersonalBasicInfo)Eval("PersonalBasicInfo")).WorkingAge.Age %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="学历" SortExpression="User">
                        <ItemTemplate>
                            <%# ((PersonalBasicInfo)Eval("PersonalBasicInfo")).Diploma.Name %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="期望职位" SortExpression="UpdateDate">
                        <ItemTemplate>
                            <%# JobIntentionManager.GetPosition(Eval("user").ToString())%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="期望薪金" SortExpression="LanguageLevelID">
                        <ItemTemplate>
                            <%# ((JobIntention)Eval("JobIntention")).SalaryYear.Salary%>/年
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作" SortExpression="LanguageLevelID">
                        <ItemTemplate>
                            <asp:Button ID="btn_View_Vip" runat="server" Text="查看" CommandArgument='<%# Eval("User") %>'
                                OnClick="btn_View_Vip" />
                            <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButton_Vip" runat="server" ConfirmText='<%# JobConfigManager.GetJobConfig()!=null?"查看此条信息需付费"+JobConfigManager.GetJobConfig().Price.ToString()+"元":"系统设置错误，请与客服联系。" %>'
                                TargetControlID="btn_View_Vip">
                            </ajaxToolkit:ConfirmButtonExtender>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    <div style="padding: 5%; text-align: center;">
                        没有找到符合查询条件的记录。
                    </div>
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:GridView ID="gv_Monthly" runat="server" AutoGenerateColumns="False" CellPadding="4"
                ForeColor="#333333" GridLines="None" AllowPaging="True">
                <RowStyle BackColor="#EFF3FB" />
                <Columns>
                    <asp:TemplateField HeaderText="姓名" SortExpression="BasicInformationID">
                        <ItemTemplate>
                            <%# ((PersonalBasicInfo)Eval("PersonalBasicInfo")).Name %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="年龄" SortExpression="SelfEvaluationID">
                        <ItemTemplate>
                            <%# DateTime.Now.Year-((PersonalBasicInfo)Eval("PersonalBasicInfo")).Birthday.Year %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="工作经验" SortExpression="JobIntentionID">
                        <ItemTemplate>
                            <%# ((PersonalBasicInfo)Eval("PersonalBasicInfo")).WorkingAge.Age %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="学历" SortExpression="User">
                        <ItemTemplate>
                            <%# ((PersonalBasicInfo)Eval("PersonalBasicInfo")).Diploma.Name %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="期望职位" SortExpression="UpdateDate">
                        <ItemTemplate>
                            <%# JobIntentionManager.GetPosition(Eval("user").ToString())%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="期望薪金" SortExpression="LanguageLevelID">
                        <ItemTemplate>
                            <%# ((JobIntention)Eval("JobIntention")).SalaryYear.Salary%>/年
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作" SortExpression="LanguageLevelID">
                        <ItemTemplate>
                            [<a href='ResumeView.aspx?user=<%# Eval("User") %>' target="_blank">查看</a>]
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    <div style="padding: 5%; text-align: center;">
                        没有找到符合查询条件的记录。
                    </div>
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
        </div>
    </div>
</asp:Content>
